package pojo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Myclass entity. @author MyEclipse Persistence Tools
 */

public class Myclass implements java.io.Serializable {

	// Fields

	private Integer myClassId;
	private Teacher teacher;
	private School school;
	private String myClassName;
	private Timestamp buildTime;
	private Set students = new HashSet(0);

	// Constructors

	/** default constructor */
	public Myclass() {
	}

	/** minimal constructor */
	public Myclass(Integer myClassId, Teacher teacher, School school,
			String myClassName) {
		this.myClassId = myClassId;
		this.teacher = teacher;
		this.school = school;
		this.myClassName = myClassName;
	}

	/** full constructor */
	public Myclass(Integer myClassId, Teacher teacher, School school,
			String myClassName, Timestamp buildTime, Set students) {
		this.myClassId = myClassId;
		this.teacher = teacher;
		this.school = school;
		this.myClassName = myClassName;
		this.buildTime = buildTime;
		this.students = students;
	}

	// Property accessors

	public Integer getMyClassId() {
		return this.myClassId;
	}

	public void setMyClassId(Integer myClassId) {
		this.myClassId = myClassId;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public School getSchool() {
		return this.school;
	}

	public void setSchool(School school) {
		this.school = school;
	}

	public String getMyClassName() {
		return this.myClassName;
	}

	public void setMyClassName(String myClassName) {
		this.myClassName = myClassName;
	}

	public Timestamp getBuildTime() {
		return this.buildTime;
	}

	public void setBuildTime(Timestamp buildTime) {
		this.buildTime = buildTime;
	}

	public Set getStudents() {
		return this.students;
	}

	public void setStudents(Set students) {
		this.students = students;
	}

}